<template>
  <div>
    <van-uploader :after-read="afterRead">
      上传
    </van-uploader>
    <img :src="imgUrl" alt="" />
  </div>
</template>
<script>
export default {
  data () {
    return {
      imgUrl: ''
    }
  },
  methods: {
    afterRead (file) {
      this.imgUrl = file.content
      console.log(file)
    }
  }
}
</script>
<style></style>
